package com.freewater.javabase.demo.designpattern.command2.undowithstatus.receiver;

/**
 * Created by FreeWater on 2017/4/4.
 */
public class Stereo {

	private int volume;

	private String inputType;

	public void on(){
		System.out.println("Stereo is on");
	}

	public void off(){
		System.out.println("Stereo is off");
	}

	public void setCD(){
		this.inputType = "CD";
		System.out.println("Stereo is set for CD input");
	}

	public void setVolume(int volume){
		this.volume = volume;
		System.out.println("Stereo volume is set to " + volume);
	}
}
